package org.sam.swing.table.model;

import java.io.Serializable;

/**
 * 
 * @author sam
 *
 */
public class FilterObject implements Serializable {

	private static final long serialVersionUID = 6942609371300636878L;
	
	/**
	 * 连接条件
	 */
	private String connectCondition = FilterOperation.AND; 

	/**
	 * 左括号
	 */
	private String leftBrackets = FilterOperation.LEFT_ONE_BRACKETS;
	
	/**
	 * 拼接用字段
	 */
	private String filed = FilterOperation.EMPTY;
	
	/**
	 * 筛选条件
	 */
	private String condition = FilterOperation.CONTAINS;
	
	/**
	 * 过滤值
	 */
	private String patternValue = FilterOperation.EMPTY;
	
	/**
	 * 右括号
	 */
	private String rightBrackets = FilterOperation.RIGHT_ONE_BRACKETS;

	/**
	 * 连接条件
	 * @return
	 */
	public String getConnectCondition() {
		return connectCondition;
	}

	/**
	 * 连接条件
	 * @param connectCondition
	 */
	public void setConnectCondition(String connectCondition) {
		this.connectCondition = connectCondition;
	}

	/**
	 * 左括号
	 * @return
	 */
	public String getLeftBrackets() {
		return leftBrackets;
	}

	/**
	 * 左括号
	 * @param leftBrackets
	 */
	public void setLeftBrackets(String leftBrackets) {
		this.leftBrackets = leftBrackets;
	}

	/**
	 * 拼接用字段
	 * @return
	 */
	public String getFiled() {
		return filed;
	}

	/**
	 * 拼接用字段
	 * @param filed
	 */
	public void setFiled(String filed) {
		this.filed = filed;
	}

	/**
	 * 筛选条件
	 * @return
	 */
	public String getCondition() {
		return condition;
	}

	/**
	 * 筛选条件
	 * @param condition
	 */
	public void setCondition(String condition) {
		this.condition = condition;
	}

	/**
	 * 过滤值
	 * @return
	 */
	public String getPatternValue() {
		return patternValue;
	}

	/**
	 * 过滤值
	 * @param patternValue
	 */
	public void setPatternValue(String patternValue) {
		this.patternValue = patternValue;
	}

	/**
	 * 右括号
	 * @return
	 */
	public String getRightBrackets() {
		return rightBrackets;
	}

	/**
	 * 右括号
	 * @param rightBrackets
	 */
	public void setRightBrackets(String rightBrackets) {
		this.rightBrackets = rightBrackets;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		return "FilterObject [connectCondition=" + connectCondition + ", leftBrackets=" + leftBrackets + ", filed="
				+ filed + ", condition=" + condition + ", patternValue=" + patternValue + ", rightBrackets="
				+ rightBrackets + "]";
	}
	
}
